/**
 * 
 */
package com.jiang.dao.impl;

import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.List;
import java.util.Set;

import com.jiang.dao.AbstractDAOImpl;
import com.jiang.dao.IAdminLogsDAO;
import com.jiang.vo.AdminLogs;

/**
 * @author Administrator
 * @管理员日志数据层实现类
 */
public class AdminLogsDAOImpl extends AbstractDAOImpl<Integer> implements IAdminLogsDAO {
	
	// 这些在增强的AtstractDAOImpl(像connection ps)类中已经实现了
	
	
	@Override
	public Boolean doCreate(AdminLogs vo) throws SQLException  {

		StringBuffer sb = new StringBuffer();
		sb.append(" INSERT INTO adminlogs(aid,logindate,ip) VALUES(?,?,?)");
		super.ps = super.conn.prepareStatement(sb.toString());
		super.ps.setString(1, vo.getAdmin().getAid());
		super.ps.setTimestamp(2, new Timestamp(vo.getLogindate().getTime()));
		super.ps.setString(3, vo.getIp());
		return super.ps.executeUpdate()>0;
	}

	@Override
	public Boolean doRemove(AdminLogs vo) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Boolean doRemoveBatch(Set<Integer> ids) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Boolean doUpdate(AdminLogs vo) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public AdminLogs doFindById(Integer id) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<AdminLogs> doFindAll() throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<AdminLogs> doFindAllSplit(Integer currentPage, Integer lineSize) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<AdminLogs> doFindAllSplit(Integer currentPage, Integer lineSize, String column, String keyWord)
			throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer getAllCount() throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer getAllCount(String column, String keyWord) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}


}
